/*Name: cesar.h
  Last Modification: 31/05/10 16:25
  Description: Header de la classe cesar, algorithme de chiffrement par décalage constant de l'alphabet. C'est
  un chiffrement symétrique qui peut etre attaquer fréquentiellement lorsque l'on connait la fréquence d'apparitions
  lettres dans le language de départ.
  License: GNU GPL v3
    Copyright (C) 2012 G. Bonnoron, P.Brunet, C. Duchene et F. Cornevaux-Juignet

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.*/

#ifndef CESAR_H
#define CESAR_H

//Inclusion des librairies nécessaires à cette classe
#include<QLabel>
#include<QList>
#include<QWidget>
#include<QString>
#include<QTime>
#include<QLineEdit>
#include<QTextEdit>
#include<QFile>
#include "Cesar_global.h"
#include "../../algorithme.h"

class Cesar : public Algorithme
{
public:
    Cesar();
    QChar changeLettre(QChar lettre,int decale);
    void chiffre(bool fich);
    void dechiffre(bool fich);
    QList<QWidget *> affiche();
     Algorithme* maker();
    ~Cesar();
    QString aide();
    QString nom();
private:
    int clef;
    void outCesar(bool fichier);
    QLineEdit *cle;
    QTextEdit *crypter;
  };

#endif // CESAR_H
